n = int(input())
nums = list(map(int, input().split()))
seen = set()
result = []
for i in nums:
    if i not in seen:
        seen.add(i)
        result.append(i)
print(*result)
